<template>
	<view>
		<van-tabs @change="changeTab" color="#42ADFF" animated :lazy-render="false" :active="active">
			<van-tab :title-style="active == 0 ? 'color: #42ADFF' : ''" title="任务统计">
				<task-data></task-data>
				<!-- <rectify-item v-if="handleList.length !== 0" :rectifyList="handleList"></rectify-item>
				<view v-else>
					<van-empty description="暂无任务" />
				</view> -->
			</van-tab>
			<van-tab :title-style="active == 1 ? 'color: #42ADFF' : ''" title="考核报表">
				<assess-data></assess-data>
				<!-- <rectify-item v-if="reviewedList.length !== 0" :rectifyList="reviewedList"></rectify-item>
				<view v-else>
					<van-empty description="暂无任务" />
				</view> -->
			</van-tab>
		</van-tabs>
	</view>
</template>

<script>
	import TaskData from '@/components/taskData.vue'
	import AssessData from '@/components/assessData.vue'
	export default {
		components: {
			TaskData,
			AssessData
		},
		data() {
			return {
				active: 0
			}
		},
		methods: {
			changeTab(name) {
				this.active = name.target.index
			}
		}
	}
</script>

<style lang="scss">
	
</style>
